package com.hqyj.system.service;

import com.hqyj.system.model.SysRole;

import java.io.IOException;
import java.util.List;

public interface SysRoleService {
    List<SysRole> queryAllSysRole() throws IOException;

    int addSysRoleBySysRole(SysRole sysRole) throws IOException;

    int deleteSysRoleByRoleId(int roleId) throws IOException;

    SysRole querySysRoleByRoleId(int roleId) throws IOException;

    int updateSysRoleBySysRole(SysRole sysRole) throws IOException;

    SysRole querySysRoleByUserId(int userId) throws IOException;
}
